<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta name="author" content="中文Lee 360811363@qq.com">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../css/public.css" media="all">
    <link rel="stylesheet" href="../../../lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
    <!--
    * [LupMisNotAllowedSync]
    * 本代码为系统自动生成代码，请根据自己业务进行修改;
    * 生成时间 2022-02-15 18:29:17;
    * 版权所有 2020-2022 lizhongwen，并保留所有权利;
    * 说明: 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和使用；不允许对程序代码以任何形式任何目的的再发布;
    * 作者: 中文Lee;
    * 作者主页: http://www.lizhongwen.com;
    * 邮箱: 360811363@qq.com;
    * QQ: 360811363;
    -->
    <style>
        .layui-card {
            border: 1px solid #f2f2f2;
            border-radius: 5px;
        }
        
        .icon {
            margin-right: 10px;
            color: #1aa094;
        }
        
        .icon-cray {
            color: #ffb800!important;
        }
        
        .icon-blue {
            color: #1e9fff!important;
        }
        
        .icon-tip {
            color: #ff5722!important;
        }
        
        .layuimini-qiuck-module {
            text-align: center;
            margin-top: 10px
        }
        
        .layuimini-qiuck-module a i {
            display: inline-block;
            width: 100%;
            height: 60px;
            line-height: 60px;
            text-align: center;
            border-radius: 2px;
            font-size: 30px;
            background-color: #F8F8F8;
            color: #333;
            transition: all .3s;
            -webkit-transition: all .3s;
        }
        
        .layuimini-qiuck-module a cite {
            position: relative;
            top: 2px;
            display: block;
            color: #666;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            font-size: 14px;
        }
        
        .welcome-module {
            width: 100%;
            height: 210px;
        }
        
        .panel {
            background-color: #fff;
            border: 1px solid transparent;
            border-radius: 3px;
            -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
            box-shadow: 0 1px 1px rgba(0, 0, 0, .05)
        }
        
        .panel-body {
            padding: 10px
        }
        
        .panel-title {
            margin-top: 0;
            margin-bottom: 0;
            font-size: 12px;
            color: inherit
        }
        
        .label {
            display: inline;
            padding: .2em .6em .3em;
            font-size: 75%;
            font-weight: 700;
            line-height: 1;
            color: #fff;
            text-align: center;
            white-space: nowrap;
            vertical-align: baseline;
            border-radius: .25em;
            margin-top: .3em;
        }
        
        .layui-red {
            color: red
        }
        
        .main_btn>p {
            height: 40px;
        }
        
        .layui-bg-number {
            background-color: #F8F8F8;
        }
        
        .layuimini-notice:hover {
            background: #f6f6f6;
        }
        
        .layuimini-notice {
            padding: 7px 16px;
            clear: both;
            font-size: 12px !important;
            cursor: pointer;
            position: relative;
            transition: background 0.2s ease-in-out;
        }
        
        .layuimini-notice-title,
        .layuimini-notice-label {
            padding-right: 70px !important;
            text-overflow: ellipsis!important;
            overflow: hidden!important;
            white-space: nowrap!important;
        }
        
        .layuimini-notice-title {
            line-height: 28px;
            font-size: 14px;
        }
        
        .layuimini-notice-extra {
            position: absolute;
            top: 50%;
            margin-top: -8px;
            right: 16px;
            display: inline-block;
            height: 16px;
            color: #999;
        }
    </style>

    <link rel="stylesheet" href="../../../lib/ext/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
    <script type="text/javascript" src="../../../lib/ext/js/jquery-1.4.4.min.js"></script>
    <script type="text/javascript" src="../../../lib/ext/js/jquery.ztree.core.js"></script>
    <script type="text/javascript" src="../../../lib/ext/js/jquery.ztree.excheck.js"></script>
    <script type="text/javascript" src="../../../lib/ext/js/jquery.ztree.exedit.js"></script>
    <style>
        .ztree li span {
            max-width: 100% !important;
        }
    </style>
</head>

<body>
    <div class="">
        <div class="">

            <form class="layui-form" action="" onsubmit="setData()">
                <input type="hidden" name="tree_ids" id="tree_ids">
                <input type="hidden" name="page_ids" id="page_ids">


                <div class="layui-row layui-card" style="padding-right:10px;margin-right: 10px;">
                    <div style="height: 20px;"></div>
                    <div class="layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">角色名称</label>
                            <div class="layui-input-block">
                                <input type="text" name="role_name" lay-verify="required" lay-reqtext="请输入角色名称" placeholder="请输入角色名称" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                    </div>

                    <div class="layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">备注说明</label>
                            <div class="layui-input-block">
                                <input type="text" name="remarks" placeholder="请输入备注说明" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                    </div>


                    <div class="layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">排序</label>
                            <div class="layui-input-block">
                                <input type="number" name="sort" value="255" lay-verify="required|number" lay-reqtext="请输入排序" placeholder="请输入排序" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">状态</label>
                            <div class="layui-input-block">
                                <input type="checkbox" checked lay-skin="switch" lay-text="ON|OFF" lay-filter="status">
                                <input type="hidden" name="status" autocomplete="off" value="1" class="layui-input">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-row layui-col-space15" style="margin-right: 10px;">
                    <div class="layui-col-md6">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-navicon icon icon-blue"></i>菜单权限（控制左侧菜单显示或隐藏）</div>
                            <div class="layui-card-body" style="height: auto;">
                                <!-- 菜单功能授权start -->
                                <button type="button" class="layui-btn layui-btn-sm" onclick="treeObj.checkAllNodes(true)">全部选中</button>
                                <button type="button" class="layui-btn layui-btn-normal layui-btn-sm" onclick="treeObj.checkAllNodes(false)">取消全选</button>
                                <button type="button" class="layui-btn layui-btn-warm layui-btn-sm" onclick="treeObj.expandAll(true)">全部展开</button>
                                <button type="button" class="layui-btn layui-btn-danger layui-btn-sm" onclick="treeObj.expandAll(false)">全部收缩</button>
                                <hr>
                                <div id="treeList" class="ztree" style="height:500px;overflow-y:scroll"></div>
                                <!-- 菜单功能授权end -->
                            </div>
                        </div>

                    </div>


                    <div class="layui-col-md6">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-link icon icon-blue"></i>页面操作功能授权</div>
                            <div class="layui-card-body" style="height: auto;">
                                <!-- 页面操作功能授权start -->
                                <button type="button" class="layui-btn layui-btn-sm" onclick="pageActionObj.checkAllNodes(true)">全部选中</button>
                                <button type="button" class="layui-btn layui-btn-normal layui-btn-sm" onclick="pageActionObj.checkAllNodes(false)">取消全选</button>
                                <button type="button" class="layui-btn layui-btn-warm layui-btn-sm" onclick="pageActionObj.expandAll(true)">全部展开</button>
                                <button type="button" class="layui-btn layui-btn-danger layui-btn-sm" onclick="pageActionObj.expandAll(false)">全部收缩</button>
                                <hr>
                                <div id="pageActionList" class="ztree" style="height:500px;overflow-y:scroll"></div>
                                <!-- 页面操作功能授权end -->
                            </div>
                        </div>

                    </div>

                </div>


                <div style="height: 20px;"></div>

                <div class="layui-form-item">
                    <div style="text-align: right;margin-right: 20px;">
                        <button class="layui-btn" lay-submit="" onclick="setData()" lay-filter="form-submit">立即提交</button>
                    </div>
                </div>
            </form>



        </div>
    </div>

    <script src="../../../js/run.js"></script>
    <!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
    <script type="text/javascript">
        var webpath = "./script/add.js?v=" + static_version;
        document.write('<scr' + 'ipt src="' + webpath + '"></scr' + 'ipt>');
    </script>
</body>

</html>